package com.b511.swpu.cementbackend.dto.output;

import lombok.*;
import lombok.experimental.Accessors;

@Getter
@Setter
@EqualsAndHashCode
@Accessors(chain = true)
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class MetaDictOutputDto implements Comparable<MetaDictOutputDto> {

    private String parentCode;

    private String parentName;

    private String code;

    private String name;

    @Override
    public int compareTo(MetaDictOutputDto o) {
        return this.code.compareTo(o.getCode());
    }
}
